projects
/
ostree.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ebb74d0
)
tests: Verify soft reboot with changed kernel state
author
Colin Walters
<walters@verbum.org>
Wed, 9 Jul 2025 17:28:18 +0000
(13:28 -0400)
committer
Colin Walters
<walters@verbum.org>
Wed, 9 Jul 2025 17:28:18 +0000
(13:28 -0400)
tests/kolainst/destructive/soft-reboot.sh
patch
|
blob
|
history
diff --git
a/tests/kolainst/destructive/soft-reboot.sh
b/tests/kolainst/destructive/soft-reboot.sh
index 3ba99e2f1a8f3accaa82729f0eda56aec361f158..f5b23d48232b7db7dfea8b5e302df6f3d9271e45 100755
(executable)
--- a/
tests/kolainst/destructive/soft-reboot.sh
+++ b/
tests/kolainst/destructive/soft-reboot.sh
@@
-140,6
+140,13
@@
case "${AUTOPKGTEST_REBOOT_MARK:-}" in
'.deployments[1].booted | not' '.deployments[1].["soft-reboot-target"] | not'
echo "ok soft reboot to non-staged"
+ # We can't soft reboot into a changed kernel state
+ rpm-ostree initramfs --enable
+ if ostree admin prepare-soft-reboot 0 2>err.txt; then
+ fatal "soft reboot prep with kernel change"
+ fi
+ assert_file_has_content_literal err.txt "different kernel state"
+
echo "ok soft reboot all tests"
;;
*)